﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics;

namespace RestaurantBooker.Web.Data
{
    public partial class Room_Table
    {
        /// <summary>
        /// The <see cref="OccupiedPlaceCount" /> property's name.
        /// </summary>
        public const string OccupiedPlaceCountPropertyName = "OccupiedPlaceCount";


        /// <summary>
        /// Gets the OccupiedPlaceCount property.
        /// TODO Update documentation:
        /// Changes to that property's value raise the PropertyChanged event. 
        /// This property's value is broadcasted by the Messenger's default instance when it changes.
        /// </summary>
        public int OccupiedPlaceCount
        {
            get
            {
                return 0;
            }
            //RaisePropertyChanged(OccupiedPlaceCountPropertyName);            
        }

        /// <summary>
        /// The <see cref="UsedPlaceCount" /> property's name.
        /// </summary>
        public const string UsedPlaceCountPropertyName = "UsedPlaceCount";

        private int _usedPlaceCount = 0;

        /// <summary>
        /// Gets the UsedPlaceCount property.
        /// TODO Update documentation:
        /// Changes to that property's value raise the PropertyChanged event. 
        /// This property's value is broadcasted by the Messenger's default instance when it changes.
        /// </summary>
        public int UsedPlaceCount
        {
            get
            {
                return _usedPlaceCount;
            }

            set
            {
                if (_usedPlaceCount == value)
                    return;

                _usedPlaceCount = value;

                // Update bindings, no broadcast
                RaisePropertyChanged(UsedPlaceCountPropertyName);
            }
        }
        
    }
}
